<include file="public:header"/>
<script>
function getmall(id,mall)
{
  if($(".gouwu_content ul").is("#"+id)==false) { 
      var gouwu_content=$(".gouwu_content").get(0);
	  var newNode = document.createElement("ul");
	      newNode.id=id;
	  /*
   $("#gouwu_content").append("<ul id='"+id+"'>");
    $.each($.treedb.getdblevel(url+"/getmall",id),function(j,val){
          
		 $("#gouwu_content ul:last").append("<li><div class='block'><span>"+val['name']+"</span><span><a href='"+val['url']+userid1+"'><img src='"+val['img']+"'/></a></span></div></li>");
		});
			   $("#gouwu_content").append("</ul>");	 
			}
		*/
$.each(mall,function(j,val){
          
		 newNode.innerHTML+="<li><div class='block'><span>"+val['name']+"</span><span><a href='"+val['url']+"{$uid}'><img src='"+val['img']+"'/></a></span></div></li>";
		});
			   gouwu_content.appendChild(newNode);	
 $(".gouwu_content ul").filter("#"+id).show().siblings().hide();
						   
			}else{  $(".gouwu_content ul").filter("#"+id).show().siblings().hide();
			}
			
	}		

$(function(){
switch("{$malltype}")
{
case'0':
  break;
case 'scfl':
  $("#gouwu_menu").show();
  break;
default:
  getmall("{$malltype}",{$mall});
}


});
</script>
<div class="main_body">
 <div id="gou_left">
  <div  class="label"><a href={:u("Scgl/index?malltype=qbsj")}>全部商城</a></div>
  <div  class="label"><a href={:u("Scgl/index")}>推荐商城</a></div>
   <div class="label"><a href={:u("Scgl/index?malltype=scfl")}>商城分类</a></div>
</div>
<div id="gou_right">
<div id="gouwu_menu" style="display:none">
<a href={:u('Scgl/index')} id="rmsj" class="menu_item">热门商家</a>
<a href={:u('Scgl/index?malltype=zhbh')} id="zhbh" class="menu_item">综合百货</a>
<a href={:u('Scgl/index?malltype=fzfs')} id="fzfs" class="menu_item">服装服饰</a>
<a href={:u('Scgl/index?malltype=sjsm')} id="sjsm" class="menu_item">手机数码</a>
<a href={:u('Scgl/index?malltype=tsyx')} id="tsyx" class="menu_item">图书音像</a>
<a href={:u('Scgl/index?malltype=dnsm')} id="dnbjb" class="menu_item">电脑数码</a>
<a href={:u('Scgl/index?malltype=hzmr')} id="hzmr" class="menu_item">化妆美容</a>
<a href={:u('Scgl/index?malltype=hwxx')} id="hwxx" class="menu_item">户外休闲</a>
<a href={:u('Scgl/index?malltype=jydq')} id="jydq" class="menu_item">家用电器</a>
<a href={:u('Scgl/index?malltype=jjsh')} id="jjsh" class="menu_item">居家生活</a>
<a href={:u('Scgl/index?malltype=myyp')} id="myyp" class="menu_item">母婴用品</a>
<a href={:u('Scgl/index?malltype=bgyp')} id="bgyp" class="menu_item">办公用品</a>
<a href={:u('Scgl/index?malltype=wjlp')} id="wjlp" class="menu_item">玩具礼品</a>
<a href={:u('Scgl/index?malltype=skrj')} id="skrj" class="menu_item">数卡软件</a>
<a href={:u('Scgl/index?malltype=ypbj')} id="ypbj" class="menu_item">药品保健</a>
<a href={:u('Scgl/index?malltype=zbyj')} id="zbyj" class="menu_item">钟表眼镜</a>
<a href={:u('Scgl/index?malltype=lydp')} id="yydp" class="menu_item">旅游订票</a>
<a href={:u('Scgl/index?malltype=qcyp')} id="qcyp" class="menu_item">汽车用品</a>
<a href={:u('Scgl/index?malltype=spps')} id="spps" class="menu_item">饰品配饰</a>
<a href={:u('Scgl/index?malltype=cwyp')} id="cwyp" class="menu_item">宠物用品</a>
<a href={:u('Scgl/index?malltype=xbpj')} id="xbpj" class="menu_item">箱包皮具</a>
<a href={:u('Scgl/index?malltype=spyl')} id="spyl" class="menu_item">食品饮料</a>
<a href={:u('Scgl/index?mallype=qbsj')} id="qbsj" class="menu_item">全部商城</a>
</div>
<div class="gouwu_content" >
	<ul id="rmsj"><li><div class="block"><span>淘宝网</span><span><a href="http://ai.taobao.com/?pid=mm_25328448_2922415_10004886&unid=&eventid=101329&u=0&spm=2014.21114278.21348041.0"><img src="__ROOT__/app/Tpl/public/images/taobaologo.gif"></a></span></div></li><li><div class="block"><span>当当网</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1006&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/dangdang.gif"></a></span></div></li><li><div class="block"><span>凡客诚品</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1064&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/vancl.gif"></a></span></div></li><li><div class="block"><span>国美网上商城</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1866&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/gome.gif"></a></span></div></li><li><div class="block"><span>凡客V+</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1942&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/vjia.gif"></a></span></div></li><li><div class="block"><span>一号店</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1087&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/yihaodian.gif"></a></span></div></li><li><div class="block"><span>苏宁易购</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1151&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/suning.gif"></a></span></div></li><li><div class="block"><span>易迅网</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1065&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/51buy.gif"></a></span></div></li><li><div class="block"><span>亚马逊CPS(返利站)</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1001&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/amazon.gif"></a></span></div></li><li><div class="block"><span>京东商城</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1052&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/JD.gif"></a></span></div></li><li><div class="block"><span>唯品会</span><span><a href="http://r.59miao.com/?pid=120627&amp;e=3f34d4c4364e7450c23d4444e50938fb4ae2966aa039ea77&amp;s=1103&amp;a={$uid}"><img src="http://img.59miao.com/seller/logo/vipshop.gif"></a></span></div></li></ul>
  </div>
  </div>

 <include file="public:footer"/>